CC = gcc
TARGET = stack_named.app
FLAGS = -Wall

OBJS = stack_named.o stack.o main.o

$(TARGET) : $(OBJS)
	$(CC) -o $@ $(FLAGS) $^

stack_named.o : stack_named.c

stack.o : stack.c

main.o : main.c  stack_named.h

clean:
	rm $(TARGET) $(OBJS)
